package com.beimin.evedata.model.inv;

import java.io.Serializable;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 *
 * @author Candle
 */
@Entity
@org.hibernate.annotations.Entity(mutable = false)
@Table(name = "invTypeMaterials")
public class InvTypeMaterial implements Serializable {

  @EmbeddedId
  @AttributeOverrides(
          {
          @AttributeOverride(name="typeID", column=@Column(name = "typeID", nullable = false)),
          @AttributeOverride(name= "materialTypeID", column=@Column(name = "materialTypeID", nullable = false))
          }
  )
  private InvTypeMaterialID id;
  int quantity;

  public InvTypeMaterialID getId() {
    return id;
  }

  public void setId(InvTypeMaterialID id) {
    this.id = id;
  }

  public int getQuantity() {
    return quantity;
  }

  public void setQuantity(int quantity) {
    this.quantity = quantity;
  }
}
